package org.csu.jpetstore;

import org.csu.jpetstore.util.MySpringBeanCreateUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("org.csu.jpetstore.mapper")
public class JPetStoreV3Application {
    public static void main(String[] args) {
        SpringApplication.run(JPetStoreV3Application.class, args);
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        //测试可用
        System.out.println(MySpringBeanCreateUtil.getItemService().getItemBOById("EST-1"));
    }
}
